package com.sms;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @desc springBoot入口
 * @author WuJiangWu
 * @date 2018年7月15日
 */
@PropertySource(value={"classpath:application.properties"})
@Configuration
@ServletComponentScan
@ComponentScan(basePackages = "com.sms")
@SpringBootApplication
public class StartApplication extends SpringBootServletInitializer{

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(StartApplication.class);
	}
	
	public static void main(String[] args) {
		SpringApplication.run(StartApplication.class, args);
	}
	
}